export default function styleFilter(style){
  return {
    ...style,
    width: "100%",
    height: "100%",
    left: "auto",
    top: "auto",
    backgroundImage:`url(${style.backgroundImage})`,
    backgroundSize: "100% auto",
    backgroundPosition: "center center",
    fontSize: `${style.fontSize  }px`,
    // fontWeight: `${style.fontWeight  }`,
    lineHeight: style.lineHeight + style.lineHeightUnit,
    borderWidth: style.borderWidth + style.borderWidthUnit,
    borderRadius:`${style.borderRadius}px`,
    // ...style,
    // width: style.width + style.widthUnit,
    // height: style.height + style.heightUnit,
    // fontSize: `${style.fontSize  }px`,
    // fontWeight: `${style.fontWeight  }`,
    // lineHeight: style.lineHeight + style.lineHeightUnit,
    // borderWidth: style.borderWidth + style.borderWidthUnit,
  }
}
